package com.jxzn.locust.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "sys_manager")
public class Manager extends AbstractNamedModel {
    /**
    * 
    */
    private static final long serialVersionUID = 1L;

    /** 登录账号 */
    String account;
    /** 密码 */
    String password;
    /** 角色id */
    Integer roleId;
    /** 上次登录时间 */
    Date lastLoginTime;
    
    @Transient
    String roleName;
    @Transient
    Boolean modifyPassword;

}
